﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace OA.DAL
{
    public class DialogField : Base<Model.DialogField>
    {
        public DialogField(ISession isession)
            : base(isession)
        {
            
        }


        public Model.DialogField Get(string dialogCode,string fieldKey)
        {
            Model.DialogField ret = null;
            var list = Get("DialogCode=? and FieldKey=?", null, 0, 0, dialogCode, fieldKey);
            if (list.Count > 0)
            {
                ret = list[0];
            }
            return ret;
        }
    }
}
